package com.hylanda.processors;

import java.util.HashMap;
import java.util.Map;

public class UuidToProcessorIDMap {
	private static UuidToProcessorIDMap m_uuidToProcessorIDMap = new UuidToProcessorIDMap();
	private Map<String, String> m_uuid2PidMap = new HashMap<String, String>();
	
	
	
	public static UuidToProcessorIDMap getInstance() {
		return m_uuidToProcessorIDMap;
	}
	
	public void setCache(String uuid,String pid){
		m_uuid2PidMap.put(uuid, pid);
	}
	

	public String getCache(String uuid){
		if(m_uuid2PidMap.containsKey(uuid)) 
			return m_uuid2PidMap.get(uuid);
		return null;
	}
}
